package com.lin.videospringboot.controller;


import com.lin.videospringboot.Utils.ParseJson;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@RequestMapping("/video")
@Controller
public class Demo {

    @ResponseBody
    @RequestMapping("/hello")
    public String Hello(@RequestBody String s) {
        Map<String,Object> mp = ParseJson.parseJson(s);
        return "hello "+mp.get("name")+" age:"+mp.get("age")+" monney:"+mp.get("monney");
    }
}
